﻿using iMES.Core.BaseProvider;
using iMES.Core.Extensions.AutofacManager;
using iMES.Entity.DomainModels;
using iMES.Inventory.IRepositories;
using iMES.Inventory.IServices;
using System;
using System.Collections.Generic;
using System.Text;

namespace iMES.Inventory.Services
{
    public partial class View_InventoryStoreServices:ServiceBase<Inventory_Store,IView_InventoryStoreRepositoies>,
        IView_InventoryStoreServices,IDependency
    {
        public View_InventoryStoreServices(IView_InventoryStoreRepositoies repository, Custom.IRepositories.IBase_NumberRuleRepository numberRuleRepository, Custom.IRepositories.IBase_ProductRepository productRepository) : base(repository)
        {
            Init(repository);
            _numberRuleRepository = numberRuleRepository;
            _productRepository = productRepository;
        }

        public static IView_InventoryStoreServices Instance
        {
            get { return AutofacContainerModule.GetService<IView_InventoryStoreServices>(); }
        }
    }
}
